home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / boot / avwm.lzh / avwm-0.4 / wbwm.h < prev   
Text File  |  1994-08-08  |  2KB  |  54 lines

  1. /* wbwm.h */
  2.  
  3. #define FNUM 11
  4. #define NUMBEROFFUNCTIONS FNUM
  5.  
  6. #define ASM __asm __saveds
  7. #define REG(x) register __## x int x
  8.  
  9. #define ARGS \
  10. REG(d0), REG(d1), REG(d2), REG(d3), REG(d4), REG(d5), REG(d6), REG(d7),\
  11. REG(a0), REG(a1), REG(a2), REG(a3), REG(a6)
  12.  
  13. #define ALIST d0,d1,d2,d3,d4,d5,d6,d7,a0,a1,a2,a3,a6
  14.  
  15. #define DEC_LVO(name)    extern LVO## name
  16. #define DEC_ASM(name)    extern name## Stub
  17. #define DEC_OLD(name)    LONG (*ASM name## O) (ARGS)
  18. #define DEC_NEW(name)    LONG ASM name## R (ARGS)
  19. #define DECLARE(name)    DEC_OLD(name); DEC_NEW(name); DEC_LVO(name); DEC_ASM(name);
  20.  
  21. #define FUNCTIONS \
  22. { &LVOCloseWindow, (struct Library *) & IntuitionBase, &CloseWindowO, &CloseWindowStub },\
  23. { &LVOMoveWindow, (struct Library *) & IntuitionBase, &MoveWindowO, &MoveWindowStub },\
  24. { &LVOOpenWindow, (struct Library *) & IntuitionBase, &OpenWindowO, &OpenWindowStub },\
  25. { &LVOSizeWindow, (struct Library *) & IntuitionBase, &SizeWindowO, &SizeWindowStub },\
  26. { &LVOWindowToBack, (struct Library *) & IntuitionBase, &WindowToBackO, &WindowToBackStub },\
  27. { &LVOWindowToFront, (struct Library *) & IntuitionBase, &WindowToFrontO, &WindowToFrontStub },\
  28. { &LVOActivateWindow, (struct Library *) & IntuitionBase, &ActivateWindowO, &ActivateWindowStub },\
  29. { &LVOMoveWindowInFrontOf, (struct Library *) & IntuitionBase, &MoveWindowInFrontOfO, &MoveWindowInFrontOfStub },\
  30. { &LVOChangeWindowBox, (struct Library *) & IntuitionBase, &ChangeWindowBoxO, &ChangeWindowBoxStub },\
  31. { &LVOZipWindow, (struct Library *) & IntuitionBase, &ZipWindowO, &ZipWindowStub },\
  32. { &LVOOpenWindowTagList, (struct Library *) & IntuitionBase, &OpenWindowTagListO, &OpenWindowTagListStub }
  33.  
  34. #define WE_CloseWindow        0x0
  35. #define WE_MoveWindow         0x1
  36. #define WE_OpenWindow         0x2
  37. #define WE_SizeWindow         0x3
  38. #define WE_WindowToBack        0x4
  39. #define WE_WindowToFront    0x5
  40. #define WE_ActivateWindow    0x6
  41. #define WE_MoveWindowInFrontOf    0x7
  42. #define WE_ChangeWindowBox    0x8
  43. #define WE_ZipWindow        0x9
  44. #define WE_OpenWindowTagList    0xA
  45.  
  46. #define WINDOW_EVENTS \
  47. WE_CloseWindow, WE_MoveWindow, WE_OpenWindow, WE_SizeWindow,\
  48. WE_WindowToBack, WE_WindowToFront, WE_ActivateWindow,\
  49. WE_MoveWindowInFrontOf, WE_ChangeWindowBox, WE_ZipWindow, WE_OpenWindowTagList
  50.  
  51. int start_window_monitor (void);
  52. void stop_window_monitor (void);
  53. void __saveds monitor_event (int event);
  54.